package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseVO;
import com.atguigu.jxc.entity.PurchaseVO2;
import com.atguigu.jxc.entity.SaleList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author WZhaokang
 * @date 2020/12/30 1:28
 */
@Repository
public interface SaleListDao {
    void save(SaleList saleList);

    List<SaleList> list(@Param("saleNumber") String saleNumber,@Param("customerId") Integer customerId, @Param("state") Integer state,@Param("sTime") String sTime,@Param("eTime") String eTime);

    void delete(Integer saleListId);

    void updateState(@Param("saleListId") Integer saleListId,@Param("state") Integer state);

    List<PurchaseVO2> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);

    List<Map> getSaleDataByDay(String sTime, String eTime);

    List<Map> getSaleDataByMonth(String sTime, String eTime);
}
